//Kyle Marshall
//Assignment 3
//marshaky@onid.oregonstate.edu
//cs362

#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>

//testing the  scoreFor function in dominion.c
int main (int argc, char** argv) {
  struct gameState G;
  int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse, 
           sea_hag, tribute, smithy};
  int expectedScore, checkedScore, initialScore;
  int seed = 1000;

  memset(&G, 23, sizeof(struct gameState)); 
  
  initializeGame(2, k, seed, &G);
  //check initial score
  initialScore = scoreFor(0, &G);
  printf("The initial score is: %d\n", initialScore);

  // will manually input values to test returned score with expected score
  G.hand[0][0]= 1;
  G.deck[0][0]=1;
  G.discard[0][0]=1;
  expectedScore = 2;
  checkedScore = scoreFor(0, &G);
  printf("The expected score is:%d checked score is: %d\n", expectedScore, checkedScore);
  if(expectedScore == checkedScore){
    printf("Test Passed");
  }else{
    printf("Test Failed");
  }
return 0;
}